Ensure Ember.keys works for null prototype objects.

This is implementing the changes made on master in
7db120f732a7ce1f898ac8ace96dfce3e1a7ec2f.