Fixed #5153 ((debug) Scope::checkVariable found variable ')')