Add protection around rightHandSide conditions for compound PK