Fixed a crash in ClangASTSource when logging is
disabled.