sw: tolerate null ShadowOverlay object as the rest of the code does.