Don't attempt to restore the cursor if there are 0 thumbnails in the current checkerboard; closes #5919.