don't crash if edd and dod aren't dates
Merge pull request #4442 from dimagi/opm

don't crash if edd and dod aren't dates