leaflet-extras/leaflet-providers — pull request #37 by calvinmetcalf (2013-03-28 19:30:33+00:00)
Title: check if it's a string before trying to do a replace on it

this was throwing an error for me in IE 8 and adding this check fixed it.