Fixed with_tags parsing

It didn't correctly parse the search query if with_tags was present and
not_tags, well, wasn't.