Potential NPE in Account.

Also, avoid calling close() if the cursor is already closed.
Signed-off-by: Sylvain Becuwe <sylvain.becuwe@gmail.com>

Change-Id: I5e077a03e437721b8fc7ffb9af284eaa405d901e
email: "Exchange Services has stopped" - Rain of Exchange Javacrashes

Cleanup some nasty records containing NULL fields.

Change-Id: Iec5e7e1bebc4beee8fa010c3f9c9ee723fd2cd83
Author: Emmanuel Berthier <emmanuel.berthier@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 60461
Force close_crash happened when add new mail from Email widget

rootcause: The widget store a email account id when Launcher add a email widget.
If the email account is removed, but the widget acount id is still exsit.

Change-Id: I4b18e19506ed6afe5d24ab44585cd58c37e221f0
Author: Erjun Ding <erjunx.ding@intel.com>
Signed-off-by: Erjun Ding <erjunx.ding@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 36835
avoid cursor leak in email provider

When cursor is done, the cursor must be closed to avoid cursor leak.

Change-Id: Iaaffed2c4e90dc4b17ae55fcedb242bf890b3dd5
Fix a Cursor leak

When cursor is done, the cursor must be closed to avoid cursor leak.

Change-Id: I8d837dd50473c3b14806f54ca8a78de14178b0cb