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
Remove trailing spaces
oops
Merge pull request #52 from MatthieuBarthel/master

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