Fix PR19239 - Add support for generating debug info for functions without lexical scopes and/or debug info at all