Fix DataFrame.resample bug for empty DataFrame #2640