Added extra null checks to FSharpSyntaxMode