Missing check if it has task_generator

It affects PrivateMC tasks...