Error handler based on filter

The “problem” is that it does run correctly and always spits out a JSON. The thing is that sometimes a certain JSON key is empty. If that is the case it should break (even though it is a succes according to the module), and should retry until it it not empty