Handles null values in MessageType and ContentType metadata fields when publishing external integration events.

Fixes #423
Merge branch 'hotfix-1.4.2'
Merge branch 'master' into develop