Protect Qt console against SyntaxError from input transformers.