Check validity of input of GERRIT_PARENT_BRANCH

Related: PROD-29251

Change-Id: I9619975741fcb9f45deeb5eaa640540acf0182d9
diff --git a/test-salt-formulas-env.groovy b/test-salt-formulas-env.groovy
index 53309c4..de631bf 100644
--- a/test-salt-formulas-env.groovy
+++ b/test-salt-formulas-env.groovy
@@ -23,7 +23,7 @@
 }
 
 env.GERRIT_BRANCH = 'master'
-if (env.GERRIT_PARENT_BRANCH) {
+if (common.validInputParam('GERRIT_PARENT_BRANCH')) {
   env.GERRIT_BRANCH = GERRIT_PARENT_BRANCH
 }