Fix the crash in getCompilerOptionsDiagnostics by not using file name as...

... compiler options do not have file name

Fixes #988