Issue #2917541 by zeyus: Query string condition throws PHP Notice when invoked via simpletest (or drush / CLI)