Make sure entityID and contactID is always set when a rule is executed
This makes sure that entityID and contactID are always set for a rule no matter how it is executed:
- Post
- Cron
- Delayed action
For example I found that "Add Tag" action did not work when a delay was added because entityID was not set when processing as a delayed action. Before this patch entityID and contactID are sometimes set, sometimes not set - it depends on the combination of triggers/conditions/actions in use because some will set them.