Fixed alerter to make sure there are actually results before sending SMS