Check that we still have a write buffer after dispatching alerts

PR: 3321