Accounts for view not having an element when highlighting

Fixes #65