Checking "Disable polling and alerting" for a service check still generates alerts

The checkboxes set one of two flags on the service.

In order for alerting to respect those flags, you need to add a check for the flags.