fixed a bug which prevented syntax errors from being reported properly because the PGcore object would not be created in those circumstances.
Changed paths: