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

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.