Only assume the OC is not visible if it exists and is set to no

Similar to commit e2def20a45c1d8307fd62fabb9769121af975abf
but in the other branch of the if, fixes bug 39637
1 file changed