addressed crash issue #6

fixed the crash when no query is present such as hits on /index.html to load up Angular master index file