ImageMagick complains when image is missing while stitching together tiles of an image
You should be able to do this with wildcards. The shell will expand to existing files:
convert -append 0_*jpeg 0a.jpg &&
convert -append 1_*jpeg 1a.jpg &&
convert -append 2_*jpeg 2a.jpg &&
convert -append 3_*jpeg 3a.jpg &&
convert -append 4_*jpeg 4a.jpg &&
convert -append 5_*jpeg 5a.jpg &&
convert -append 6_*jpeg 6a.jpg &&
convert +append *a.jpg 0_final.jpg