GRIFFON-643 handle unbalanced braces