Null checker for messages