Fix Ember.keys to handle missing `hasOwnProperty`.

Before this change calling `Ember.keys` on an object created without a
prototype (ala `Ember.create(null)`) will throw an error since that
object will not have a `hasOwnProperty` function.

This change just confirms that `hasOwnProperty` exists, and is a
function before checking it.