[libclang] Avoid assertion failures for undefined classes

clang_Cursor_hasDefaultConstructor and clang_Cursor_hasSimpleDestructor
now return -2 for undefined classes instead of asserting (or segfaulting).