core: don't set effect class when it is undefined
Merge pull request #27 from component/fix/undefined-class

core: don't set effect class when it is undefined