Fixes cases when a contact was deleted via the contacts app.

In this case, the contact id of the raw contact is nulled out. This has the
side effect of making the IN clause of sqlite never equal.  Similar to:

SELECT 1 as id WHERE id NOT IN (SELECT null);

always returns 0 rows because the comparison to null is always false.

Protect against this case by eliminating null contact ids.

Bug: 11826565
Change-Id: Ide9b150bb7f94d03c210d43dbc8cdd5c42c21cf9
Automatic translation import

Change-Id: I6774800bd0d30065f5410dd1fa125b314f19d377
Merge branch 'cm-11.0' into stable/cm-11.0