[SP-1341] [MONDRIAN-2109] Display a proper error message when a calculated member is used inside of ValidMeasure. (cherry pick from master 317605ee3784437b9e2e42634866f66c3f76a59b)