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>.
Merge pull request #100 from tarjoilija/dev

Check if firstHint is null in hints.js