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

Explicitly set null to the property "period" if period input value is not set. This can ensure the property "period" is always enumerable.

BUG=XWALK-2079