Fixes regression: reboot only if hostname is set