Fixes retrieval of derived variable
Fixes retrieval of derived variable

When determining which dataset to pull a derived variable from, an
incorrect assertion checks that the input dataset has the derived
variable and not the base variable.

WFRT/Comps,WFRT/Comps,WFRT/Comps