Fixed the check whether a new kernel is installed.

This fixes an issue when cdebootstrap_cmdline is specified in
installer-config.txt, in which case a whole code path is skipped.
Thanks to gabrielrm from the forums for bringing that to light.