fix formatting to allow for None datestrings
Merge pull request #1699 from dimagi/opm_format

fix formatting to allow for None datestrings