[libclang] Fix a crash with invalid code, while skip function bodies is enabled.