Check if firstHint is null in hints.js

When hints are opened and closed too quickly it throws
'TypeError: this._tabNavigation[firstHint] is undefined'.

Can be reproduced by hitting f followed by <Esc>.