Send error when payload is empty

Configure a trigger node as I have described, connect an Inject node into it and a debug node on the output. Experiment with it to understand what it does. Then you should be able to work out what to do with it.