Ensure subject and data is available to avoid variable not found error
while using queue.

Signed-off-by: crynobone <crynobone@gmail.com>