Date helper fix, moment breaks with null values

fixes #1730