fix deletion of empty partitioned tables