Fix notices in Opaque Behaviour. #8769

The regression was caused by #8523.