fix: avoid null exception at sending message to worker