fix(engine): ignore null activities in history transform listener

- if a human task is non blocking it is handled as manual task
  which doesn't have an activity in the current implementation
- it is general a good idea to not add a listener to null

related to #CAM-3057