Bug 862061 - [SMS][MMS] contacts without a phone number entry will break the SMS app r=borja

v1.0.1 adhoc patch
also fixes the contact search that was broken for some time because of an
undeclared variable.

Per request here https://bugzilla.mozilla.org/show_bug.cgi?id=862061#c12

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>