Catch and ignore SyntaxError when executing