[Alarm] Initialize the "period" to null if its value is not set.
This can ensure the "period" be enumerable.
BUG=XWALK-2079
Merge pull request #350 from yejingfu/alarm-fix

[Alarm] Initialize the "period" to null if its value is not set.