Fixed #5340 (Preprocessor: not using errorLogger when reporting syntax errors)