MOBILE-786 messages: Do not display empty messages

This may happen in older installations due to MDL-44954