removed bug in ModuleDisplayGallery.php

https://community.contao.org/de/showthread.php?22634-gallery_creator/page12&p=331070&viewfull=1#post331070