Partial fix for #13761.

https://issues.dlang.org/show_bug.cgi?id=13761
I think there's a typo because in next « else if » there's an access to t1 and t2 and if one of them is null then it will lead to crash.