Issue 13333 - Incorrect error ungagging during the resolution of forward references

https://issues.dlang.org/show_bug.cgi?id=13333