trivial: Fix a theoretical crash spotted by clang
Do not crash if we fall back to the alternative icon path

Spotted by clang.
trivial: Fix a tiny inefficiency spotted by clang
trivial: Set the return value when gnome-software-cmd fails