hwc2: Fix out of bound vector access in isHDRSupported()

Validate the vector size before accessing it in isHDRSupported() API
to avoid out of bound access.

Change-Id: Id1c59ae3ded8abf40564804eb6f812aa86382f1d
1 file changed