fix failure if relations has filtered out nodes

1 job for 0.0.7 in 46 seconds (queued for 2 seconds)
latest