Fix checking whether GraphicsBufferView is null
If the graphics buffer view is null, GraphicsBufferView::image() will point to a valid memory location but the QImage at that address is going to be null.
(cherry picked from commit bc2c5bf4)
Co-authored-by: Vlad Zahorodnii vlad.zahorodnii@kde.org