Fix for constructor generator when no messages are defined