Fix failure on ogr_libkml_write_model if network not available

git-svn-id: https://svn.osgeo.org/gdal/trunk@27034 f0d54148-0727-0410-94bb-9a71ac55c965