Added null checks for the context on date formatting
Merge pull request #74 from matthewrice345/master

Added null checks for the context on date formatting