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.
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.