Fix the 'unselect' action of the 'Select images' page which stopped working with the latest commit.