Catching errors when index doesn't exist.