Check null arg in PropertyNameResolver

Otherwise you get a NullReferenceException in Resolve(), harder to debug.
Merge pull request #1114 from mausch/patch-1

Check null arg in PropertyNameResolver