Fix error when converting MTS files with sliceprob
When trying to convert an MTS file that contains sliceprob data (e.g. the tree schematics found in Minetest Game), it would fail with an error about 'size' being a nil value. This PR replaces that line with instead checking the length of the layers table to get the Y size as done in the asciiart_to_schematic function.