io: do not try to create zero-sized datasets