Merged requested to merge pwithnall/gnome-software:backport-1021-desktop-repos-gnome-41 into gnome-41
The gs_plugin_packagekit_add_results() can reuse GsApp instances from the plugin cache, which can already have set property state and kind, but this was not checked for, which could cause runtime warnings about invalid state or kind change.
A reproducer is to open Repositories dialog, which lists available repositories and the applications being installed in each of them (added as 'related'). These installed applications can have set state 'updatable' or have refined their 'kind' already.
Trivial backport of !1021 (merged) to