Do not load empty ids when conditions are present.