Use appropriate buffer in QgsGeometry::XXXContainedInLine. Fix #10999.
Stop capturing when an error occurs with reshaping