diff --git a/core/server/data/migrations/versions/3.22/02-settings-key-renames.js b/core/server/data/migrations/versions/3.22/02-settings-key-renames.js
index <HASH>..<HASH> 100644
--- a/core/server/data/migrations/versions/3.22/02-settings-key-renames.js
+++ b/core/server/data/migrations/versions/3.22/02-settings-key-renames.js
@@ -16,7 +16,11 @@ const renameMappings = [{
     from: 'brand',
     to: 'accent_color',
     getToValue: (fromValue) => {
-        return JSON.parse(fromValue).primaryColor || '';
+        try {
+            return JSON.parse(fromValue).primaryColor || '';
+        } catch (err) {
+            return '';
+        }
     },
     getFromValue: (toValue) => {
         return JSON.stringify({
Fixed migration when brand setting is null

refs #<I>

This would throw if the setting was null, we catch and use the default
instead.