Iterate using Object.keys to avoid validating on nonexistent attributes.

I ran into some issues with this today. I didn't really investigate where the other props came from, but I think some other module in my project.