Check null arg in PropertyNameResolver

Otherwise you get a NullReferenceException in Resolve(), harder to debug.