snippets: fix incorrect check in readycallback

This shouldn't have been changed, as object does not need to be related
to the object to be useful as a snippet.
2 jobs for master in 36 minutes and 29 seconds
Status Job ID Name Coverage
  Test
passed #1233960
flatpak
flatpak

00:29:56

 
  Deploy
passed #1233961
nightly

00:06:32