Fix endless while if one image

Fix issue that makes browser freeze up if the film roll is loaded with only one image and moveToIndex is called twice.

(children.length == 1 => the while loop never exits)