Fixed issue where missing identifiers pushed trivia into the navigation bar

Fixes #1183.
Because an EOF token has no width.