fixes #2182 with null provider in alert handler
fixes #2183 with null bitmap in messageview
ensures db is still open when an update is called
this happens on sign out/exit often
fixes #2814 empty cursor for thumnail lookup
fixes #2815 cursor can sometimes be null or empty
remove typo
check if contentresolver is null and get it on demand. fixes #2816