Add detection of empty message.