fix for 9.3 -- pg 9.3 seems to throw errors sooner so we need to check a topology exists before trying to query it.

git-svn-id: http://svn.osgeo.org/postgis/trunk@11075 b70326c6-7e19-0410-871a-916f4a2858ee