wimlib_split(): fix bug where no parts would be written if WIM contained no images