Error code in "or if not found" part of get value for key in dictionary block always run regardless of actual error

I wanted to debug some code where some code which sometimes didn't work. I figured out some values of the dictionary were missing so I put a notify in a "do result" block attached to the "or if not found" to figure out which missing pairs. I soon realized,however, that the code ran regardless of error. How do I get the notifier only to trigger when there is an error?

Show your relevant blocks