workqueue: Added null check and warning

https://github.com/neobuddy89/hammerhead/commit/6db68c06422140976339907f52eb7d1616a39a7d