fixes #2766 exit crash on null db
fixes lockscreen finish() and not starting new activity
don't resize audio icon in message view
small changes to delivery receipt check (was missing before)