Fix alerts on no data
Some of the verification checks crash when there is no data to compute alerts on. This adds a check for the size (so there's still data in the alerts table so we know that the script ran), but only adds the rest of the checks if there actually is data.
Bug: T384962