[MONDRIAN-1616]  NPE could be thrown in ValidMeasure when role restrictions prevent access to a virtual cube's base cubes.

Pull req for 3.5.