Fixed the InvokeEffector so that a Task object is returned in case of an...

... empty/null entitiesToCall instead of returning null