Added control on tasks without robot and robots without task.