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

[For @gaillafr , I correct #317 / #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.