Fixed the PostGIS circular imports caused by 1506c71a95.

Thanks to @loic for the help.

refs #12030.