You neither need the for each nor the empty subevent for what you try to do. Either way it should work.
Here is the part of my code that doesn't work. And of course if you try to reproduce it just like this it will work. The issue is that it doesnt work on my code.
Post your code then, no way to help you if you don't post code. Also that sounds like an issue with your code, even if you don't want to hear it. Follow the steps on the bugreport form, delete stuff from your project, narrow it down.