verify parens are balanced before executing gradient regex
Merge pull request #4929 from adobe/randy/issue-4650-squashed

Verify parens are balanced before executing gradient regex