Improve handling of empty indices in indices view