Avoid index-does-not-exist errors.