Fixed the PostGIS circular imports caused by 1506c71a95.

Thanks to @loic84 for the help.

refs #12030.