Don't use the appdata version in the installed version string if empty

Otherwise the output becomes " (branch)" instead of just "branch" like
what the available version string would look like if the appdata version
is empty.
2 jobs for Plasma/5.24 in 2 minutes and 12 seconds (queued for 6 minutes and 11 seconds)