More bugfixing and code improvements, this time we get better error reporting again
Fix handling of legacy AppStream metadata