[JSC] Fix invalid exception checks after recent ErrorInstance changes