Check whether the contact exists when saving the contact

Step to reproduce it on Nexus 4 with 4.4.2:
1.Launch Gallery app-->Random select one picture-->"Set picture as"
  -->"Contact photo"-->Random tap one contact-->"Crop picture"-->
  "Just once"-->crop the picture-->press home key
2.Launch People app-->delete the contact which selected in step1-->
  press home key-->Launch Gallery app again-->"Save"

When I set a picture cropped for a contact, before doing the save
operation, I delete the contact, now go on doing the save operation,
because the contact does not exist, the RawContacts is null, so the
function createRawContactDeltaList occurs a crash.

Change-Id: Ie6d26ff188790937e16915e636e4b484cacb12a4
Signed-off-by: Zhangjie <jiex.z.zhang@intel.com>
Signed-off-by: guojingx <guojingx.wu@intel.com>
Merge "Check whether the contact exists when saving the contact" into cm-11.0