Fixed #21496 -- Fixed crash when GeometryField used TextInput

Thanks Rhett Garber for the report and initial patch.