This should fix quest search logic, though I'm unsure if it's remotely accurate to official.