Fix map:set_tileset() moving the hero near the map border. Fix #400.