Guard getInstants() against dates where startTime is after endTime.

Without this, the method would return an empty list in this case.