wp: fixup tmp_global exposition with removed objects

Consider invalid id as removed marker, similarly as in the preceding for
loop.  This condition should currently not be possible to hit in
practice, but better to clean up.
7 jobs for proxy-assert in 23 minutes (queued for 22 seconds)
Status Name Job ID Coverage
  Container
passed container_fedora #16168953

00:00:35

passed container_ubuntu #16168954

00:00:13

 
  Build
passed build_on_fedora_no_docs #16168956

00:01:26

passed build_on_fedora_with_docs #16168955

00:17:36

passed build_on_ubuntu_no_gir #16168958

00:01:12

passed build_on_ubuntu_with_gir #16168957

00:01:25

 
  Analysis
passed shellcheck #16168959

00:04:48