Update getMapPromise to resolve the promise if the map has already been added

It fix an issue when you use getMapPromise to look for a reused map