[theme] Use isPlainObject
to avoid dropping prototypes
#12100
Merged
isPlainObject
to avoid dropping prototypes
#12100