Fix normalize parameters

Yep, seems that `values.hasOwnProperty(key)` is enough here. I don't see any reason to allow `null`, but disallow `undefined`