0.5.19 - test class/target names

Before killing sprite, check for a valid class and target name.