Avoid error when going to non-existing slides.