[BUGFIX beta] Enable setProperties to work on Object.create(null) object.

Closes #5607.