Issue #3465604 by dydave: TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given