Fix a regression that causes a segfault in GTK+ 3.8

A regression happened probably in a rebase of a recent pull request merged. I didn't notice it at all during the testing because I was using jhbuild at that time.