Dealing better with empty layers

Leaflet's getBounds method crashes if a layer is empty