hwc2: Fix out of bound check in getDisplayAttributes()

Change-Id: I74bffe3a2ec7db339541339048f0cbb405d85de9
CRs-Fixed: 2147264
1 file changed