Fixed a potential issue when upgrading the app.  If the baseLayer wasn't set, the layers wouldn't load