Fixed issue where missing identifiers pushed trivia into the navigation bar

Fixes #1183.