Fixed shadow disappearing when a script runs while being dragged

Fixes #132.
It seems that this line needs to make sure that 'filters' is not null.