Minor changes to search detection

Is broken. Don’t know why. Investigating. Sad face.
http://forum.textpattern.com/viewtopic.php?id=40296