Server: Fix bug of ai module's dijkstra_map() hanging on too large maps.