It is most likely causing warnings in the background. I’m pretty sure that when the gallery is retrieved it uses the php function getimagesize() and using this function on non image files usually causes warnings. They generally won’t be a problem unless you turn on error display.