Issue when effect has no targets

I had this issue in multi-thread application, but in any case it seems strange to me not to make this check.