fix alarm bug xwalk-2079

Explicitly set null to the property "period" if period input value is not defined. This can ensure the property "period" is always enumerable.

BUG=XWALK-2079
Do you still think period a readonly prop?