Improved undefined/null checking.
Merge pull request #1 from aperturescience/undefined-date-fixes

Improved undefined/null checking.