Fix crash due to missing image queue family (#311)
Fix crash due to missing image queue family (#311)

When the image is not in UNDEFINED layout, and has no queue family,
this can cause a null reference. This can happen for images created in
PREINITIALIZED layout and never used.

Co-authored-by: Benson Joeris <d8cf16d85117713125aa476605aaa368954d3c83@google.com>
Cherry-pick of: google/gapid#3824
google/agi,google/agi,google/agi,google/agi,google/agi,google/agi,google/agi,google/agi