Fixed nasty bug relating to building of the view model when no search has been performed.