Removed overhead of WAITING FOR CHILDREN

When a task has no children, it not longer goes through the
WAITING_FOR_CHILDREN state.