Fixed bug in querygenerator.

If sub block was just text, it was not considered valid by the upper
block.
Merge branch 'master' of https://github.com/eskimor/misc-stuff-including-D-programming-language-web-stuff