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

Without this, the method would return an empty list in this case.
Merge pull request #1 from jotomo/guard

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