diff --git a/lib/private/app/infoparser.php b/lib/private/app/infoparser.php
index 22f705884bc45840b09c011f3693e42b08f4ae4b..a84163612e8e75b4dc5e0c31e328b603b5ea2924 100644
--- a/lib/private/app/infoparser.php
+++ b/lib/private/app/infoparser.php
@@ -59,6 +59,7 @@ class InfoParser {
 		$xml = simplexml_load_file($file);
 		libxml_disable_entity_loader($loadEntities);
 		if ($xml == false) {
+			libxml_clear_errors();
 			return null;
 		}
 		$array = $this->xmlToArray($xml);