Fix bug introduced in contrib.gis in 74f3884ae0
Merge pull request #1070 from mfogel/ticket_20413

Fix bug introduced in contrib.gis in 74f3884ae0