fix: blueprint api would panic if len(settings) is zero (#4176)

diff --git a/services/blueprint_helper.go b/services/blueprint_helper.go
index facd5f7..735896e 100644
--- a/services/blueprint_helper.go
+++ b/services/blueprint_helper.go
@@ -153,6 +153,9 @@
 		Model:       dbBlueprint.Model,
 		Labels:      labelList,
 	}
+	if len(blueprint.Settings) == 0 {
+		blueprint.Settings = nil
+	}
 	return &blueprint
 }
 
diff --git a/services/init.go b/services/init.go
index 84cd639..f1b922c 100644
--- a/services/init.go
+++ b/services/init.go
@@ -87,6 +87,7 @@
 	err = runner.LoadPlugins(basicRes)
 	if err != nil {
 		log.Error(err, "failed to load plugins")
+		panic(err)
 	}
 
 	// pull migration scripts from plugins to migrator