Corrected bug that made slicer crash when going to previous query image while on the first query image.