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

**before**
![](https://i.cloudup.com/adLAFVUdXH.png)

**after**
![](https://i.cloudup.com/PMKRS96ZmB.png)