Do not parse the .desktop file if the ID already exists in the XML metadata

This little optimisation speeds up using AS_STORE_LOAD_FLAG_DESKTOP substantially.