Fix fetching of affected tables when mapnik tokens are used

We'll replace !bbox! with an empty box and !pixel_width! and
!pixel_height! with 1 before passing the query to CDB_QueryTable