backend: better NULL termination fix for IO scheduler switching