goldfish hwcomposer should return error if attribute is not provided

Impact emulator only

Bug: 90631175
Test: Manual
Change-Id: I0553892fb20db9d8bd6e25cbe5babfeb476042eb
diff --git a/hwcomposer/hwcomposer.cpp b/hwcomposer/hwcomposer.cpp
index bcd7c30..702527f 100644
--- a/hwcomposer/hwcomposer.cpp
+++ b/hwcomposer/hwcomposer.cpp
@@ -208,6 +208,9 @@
     for (int i = 0; attributes[i] != HWC_DISPLAY_NO_ATTRIBUTE; i++) {
         if (disp == HWC_DISPLAY_PRIMARY) {
             values[i] = hwc_attribute(pdev, attributes[i]);
+            if (values[i] == -EINVAL) {
+                return -EINVAL;
+            }
         } else {
             ALOGE("unknown display type %u", disp);
             return -EINVAL;