Fixing none values in hidden query field.