fixes #3773

This makes sure that the shadowmaps aren't shown when there aren't any shadows to show.