gtk: fix assertion when the element has no peer
drwxr-xr-x - ext
drwxr-xr-x - tests