fix(Mask): Correct PHP Notice: Trying to get property of non-object (closes #5178)