Fixed TypeError in FlakesReporter.syntaxError