Fixing dark theme issue #2554 (Leaflet part)

First part of bugfix.

https://github.com/Leaflet/Leaflet/issues/2554
https://github.com/mapbox/mapbox.js/issues/716

Note: Earlier fork & commits deleted because I didn't use topic branches.