[-] MO gsitemap : fix infinite loop and bugfix.

[For gaillafr, correct #317 and re-open #321]
An infinite loop and infinite files was created in root folder if the
shop have more than about 5000 product and exceed the memory limit or
per file maximum links limit.