Corrected bug in triggering of Schedules

This correction will 
1. Fix return of "null" in getScheduledFireTime() for the first time.
2. Make sure that the scheduledFireTime is correct for all triggers.