Always check if runlevels are valid before switching to them, including the default.