[libcontacts] Ignore requests with invalid IDs