Added support for messages without fields.

This will support messages which just have enums or nested messages or messages
that are completely empty (zero attributes).