Fix nullptr dereference in MainWindow::OnImageFetched.