Fix redirecting to INBOX if current mailbox is deleted
Bug #12242: Fix image unblocking javascript in basic view