Oops, fix bug with BaseCourseAlert.delete_expired

... deleting items with expiry dates in the future instead of in the past. Also
fix terrible test that did not catch this case. Double oops! Thanks for the
catch @mduan!!