Ensured FSharpSyntaxMode uses tryCast properly
Merge pull request #741 from 7sharp9/ImproveSyntaxModeTryCast

Ensured FSharpSyntaxMode uses tryCast to avoid NRE