Fix retrieval of conditions for trials

Reviewer: Daniel Villafuerte

Issue: None