Date helper fix, moment breaks with null values

fixes #1730
Merge pull request #1732 from ErisDS/fix-1730

Date helper fix, moment breaks with null values