Fixes bug in edited task's start/end date comparison