Fixed issue where missing identifiers pushed trivia into the navigation bar

Fixes #1183.
Why do we have to check for ```node.kind !== SyntaxKind.EndOfFileToken```