Fixing error on empty string requests to default index/type url