hwc2: fix the logic to validate return value of GetProperty

CRs-fixed: 2481105
Change-Id: Ifdf778c0d20d5ae5e1d9cabb66d86140a25cea0f
1 file changed