Fixes for builds without libgeotiff.
Fix assertion bound.