hover: fix potential crash with DnD

Fixes #1177
2 jobs for master in 44 minutes and 6 seconds (queued for 1 second)
Status Job ID Name Coverage
  Test
passed #892555
flatpak
flatpak

00:38:20

 
  Deploy
passed #892556
nightly

00:05:45