[mcs] Don't report interface implementation errors for optional implementations. Fixes #18030