leaflet: Avoid divisions by 0

11 jobs for division-by-zero in 19 minutes and 44 seconds (queued for 7 minutes and 22 seconds)