A backport of a Leaflet bugfix to version 0.5.1