Fix for #1635

Solves #1635 by not checking the start / end date if the dates are left empty.