Fix wrong action folder selection if managesieve_domains is not empty (#1489617)