Avoid adding pending apps more than once to the installed list

This is a backport of an existing fix on master.

https://bugzilla.gnome.org/show_bug.cgi?id=711613