Bug fix in portal render limit handler and add function to clean up left over portals which should be removed after minimum display portal level rise.

Bug occur because In `map_data.js`, `var ppp = [];` was changed to `var ppp = {};` in a commit a few weeks ago.