Fixes #7413; isEmptyObject() check to see if obj passes isPlainObject