Core: Remove special case try/catch in isPlainObject

Fixes #14746