Fix Fantom REPL crash from metro default import (#57443)