getMasterPageItem added support for inherited masterpages