[GTK] Fix crash when trying to generate a bitmap that's too small