gs-plugin-loader: Handle NULL unique id in pending queue

There could be shown a runtime warning on the terminal: GLib g_string_insert_len: assertion 'len == 0 || val != NULL' failed when installing/uninstalling codes, because they do not have a unique id. The warning came from the save_install_queue(), which did not check whether the unique id is set.

Merge request reports