Use StartNewMessage / EndAndQueueMessage to prevent assert with zero size messages. Closes #478.