Writer null-check moved after the programmatically QoS code.