A potential fix for #335

There seemed to be an issue with pulling in module data for pg courses when making a programme live. This fix should hopefully sort that.