Engine(-Tests): fixed NRE thrown in MessageDtoModelV1.ToMessage()

If for whatever reason the deserialization of a message fails and thus the class
fields are never initialized to non-null values then ToMessage() will throw a
NRE.