Clear min/max date on empty/invalid value
Merge pull request #223 from Lekensteyn/fixes

Clear min/max date on empty/invalid value