Set openEmail to a blank email object instead of null when the email viewer is closed so the elements don't need to be removed / re-created