[NEXUS-6495] add messagOf helper to use either message or toString