Fix for issue #916: Nullpointer in MaterialManager - taskReset(). Fixed this by adding a null check.