Add a warning to quickly pinpoint the problem. This would have simplified tracking down this problem in D12105.