[T4] Fix CompilerError ctor args in base template

Tested to match VS T4 engine.

BXC21691 - T4 null-reference usage for fileName when creating a
CompilerError object crashes CompilerError.ToString in the .NET framework