Fix edge case where PixmapPacker eats all memory in infinite recursion

Please check if I got this right; there is no test for it, and I can't seem to use my own libgdx build in my game right now.