Fixed atlas index
Index is always (gid-1), so the processing order of the tile sets does not matter.
Merge pull request #1086 from hneuer/tmpack

TiledMapPacker: Fixed atlas index