Do not allocate memory for empty messages.