fix(Mask): Correct PHP Notice: Trying to get property of non-object (refs #5178)
Merge pull request #1371 from eguaj/3.2-A5178

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