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.