Fixed bug in mesh_to_text()

Bug due to differences in downloaded records and those loaded in from
JSON files.