tmx: mark pretran struct as linked when adding to a non-empty slot

- otherwise is not going to be unlinked properly, with high potential of
  ending in an infinite loop
- reported by Juha Heinanen