DebugInfo: Simplify/narrow null-check for getOrCreateType