Added extra condition if number of alerts = 1

https://trello.com/c/uKREmUad

From now if there is a single alert to scheduler, a run one job will be
scheduled. Also if the alert has a past start date then the event will
be sent.

Change-Id: Id2b21636a56be856106eebb10473ec2e97c1f6f5