Fix incorrect branch condition in EmitCheckForInternalizedStringsOrObjects