Add default for getAttr

Change-Id: Ia36eb5e92007d372504a372beadf197d0b7d01ff
Merge "Add default for getAttr"