root.sh: Only check for patched packages when installed

Not all architectures have all packages (e.g. we don't have
flash-kernel on amd64) so check if a package is installed at
all before checking if it's patched.
1 job for check-patched-installed in 18 seconds (queued for 2 seconds)