mms: do not close database

JIRA: BUGDUMP-22916
https://jira.cyanogenmod.org/browse/BUGDUMP-22916
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>

Change-Id: I1ce4d8e3d8b1bb482e5556e20e9bb76dbf522abf
(cherry picked from commit 3079ec08d1342456688df69822026fec34de13ea)
mms: prevent FC if there isn't and associated activity

If the activity associated to span (email or browser) is not present or is disabled, then
that leads to an ActivityNotFoundException. Just graful display a message instead of crash.

JIRA: BUGDUMP-23165
https://jira.cyanogenmod.org/browse/BUGDUMP-23165
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>

Change-Id: Iaab2c2aac199f641a6df12e20bda7fecce8c2d39
(cherry picked from commit 2e1efc0504dc1801b1138970faa0dffb8f50ee31)
Merge "mms: prevent FC if there isn't and associated activity" into stable/cm-11.0