Merge "hwc2: Fix out of bound check in getDisplayAttributes()"