issue #1737 NullReferenceException MessageMapper

GenericTypeDefintions can't be mapped except we use constraints
Merge pull request #1768 from mbabi/develop

issue #1737 NullReferenceException MessageMapper