Merge "Fix alarms with negative or very large wakup times." into froyo