the_geom should never be null but in this case if it were null it would cause an error.