Don't set magic effects for dead actors (Fixes #1783)