Before version 2.0.0 I was able to resample an empty DataFrame with DateTimeIndex. Now it leads to a `ValueError`. Is that on purpose or a bug?