issue #1737 NullReferenceException MessageMapper

GenericTypeDefintions can't be mapped except we use constraints