Fixed crash in instanceOf and isA when argument was nil