Solves problem with QueryBuilder and key

When a key is selected on the querybuilder, it isn't 'unset'. Meaning that all
gets are done on the key, not on the value. This commit fixes that problem
Merge pull request #1029 from pveentjer/fix/maintenance-3.x/querybuilder-key

Solves problem with QueryBuilder and key