flatpak: Check if a bundle is already installed before producing it new
It could be the case and it's useful that it's reflected
Also use FlatpakResource::updateRef for bundles too.
It helps initialize the resource's fields that will be later used for different queries. For example, it allows to look it back up after getting the resource installed.
Edited by Aleix Pol Gonzalez