Not proper fix necessarily. But fixes this crash: https://bugs.freedesktop.org/show_bug.cgi?id=101889#c81