Fix for NPE when there is no RelatesTo.
Updated fix for relatesto, and added logic to messageId, and action.
Updates for codereview comments.
CONN-401: using null instead of StringUtils.Empty.
Merge pull request #475 from msweaver/CONN-401

Conn 401