#290. Fixed NullPointerExceptions in cases where a workflow activity
returns a null context.