Update shadow.class.js

Shadow return null if null is passed.
Makes .setShadow(null) works.