Fixed up connected textures crash (if what sp614x says is correct)

Checks have been added inside the getIcon methods of soil classes to make sure that it doesn't try to get an index outside the list.