Fix crash in ticks for empty d3.time.scale domain.

Fixes #1525. This was only an issue because the domain is extended by one millisecond when it is empty (for an inclusive upper bound).