Fixed NullReferenceException due to SqlTranslationWriter not always being available

This is a fix to an issue I reported earlier.

"Provider does not work well in lprun.exe (cmd line tool)"