Bug 1040881 - Searching doesn't work on contacts with middle names

better if we break the loop once one of the terms does not match