check that message is not empty