Fix ranges for some problems
clang_getDiagnosticRange can return invalid ranges. In that case we ignore it and use clang_getDiagnosticLocation range instead.