Fix crash loading empty DEP-11 data
as_metadata_components_to_collection returns NULL if there is nothing to serialize, and also if an error occurs. Add a check to detect the former case instead of attempting to read an unset GError.
Edited by Philip Withnall