Fix #8219

fixes the file doGeoprocessing.py (#8219)
fixes the file doIntersectLines.py (#7073)