Fixed a bug with the LayersLoader that caused the success callback not to get executed if the only layer is the osm layer