Partial fix for #13761.

https://issues.dlang.org/show_bug.cgi?id=13761
It may well be possible, but I'm not sure the first condition is the problem.