Fix exception on autocomplete for blank new tabs

The bug was introduced in 698344f0