suppress whitespace when building the query and scoped variable item

fix ticket RAILO-2259
https://issues.jboss.org/browse/RAILO-2259