webgis plugin: fixed crashing when publishing project without base layers