Fix fatal error when opening non-existing message in compose window