hybris: fix crash when gralloc1 not supported on the device
If HAS_GRALLOC1_HEADER is defined but the device doesn't actually
support gralloc1 then gralloc1_open
may succeed but the callbacks in
the structure are all NULL. Check the module_api_version
field before
calling gralloc1_open
following Loader::Loader()
in
frameworks/native/libs/ui/Gralloc1.cpp. This fixes a segfault with the
binary libs for Samsung herolte.
This fixes https://github.com/ubports/ubuntu-touch/issues/1504