Add fix for TypeError when Object.keys is called on a non-object.