`md` is only non-null  when a module declaration is found in the file, this is specifically a case where the file doesn't have a module declaration. AFAIK we at least "theoretically" require that all files have a module declaration, but this isn't enforced (yet?).