Fix mouse scroll in z-mode of lighttable.

Using the mouse scroll on the lighttable move to next/previous images
of the selected images or collection. The recent change to use the
memory table collected_images has made easy to fix the navigation in
z-mode with all sorting parameters.

Fixes #9347.