Improve map_get_path() so that it can accept NULL map argument.