Bugfix for fatal E_USER_ERROR handling and modify DocumentParser::fatalErrorCheck() to check for E_PARSE