Handle an error in `localarray.__getitem__` sooner.