BUG: Creating DatetimeIndex from empty array with datetime64 dtype raises IndexError
TST: handle #2804 bug in cython