fixed when there is a query without the_geom exports fails #resolve CDB-962
Merge remote-tracking branch 'origin/bug/CDB-962' into release/2.5.0