fix dropping empty partitioned tables