Handle case where there are no GUI hud elements
Merge pull request #903 from mkienenb/PR-no-GUI-HUD-bug

Handle case where there is no GUI hud