Minor update to provide null protection in coerceMessage.