JS: panic genStaticLit RUBBISH(LiftedRep)
## Summary
The JS backend panics while compiling the `statistics` package.
## Steps to reproduce
Try compiling `statistics-0.16.2.1` with the JS backend in GHC head. We get:
```
<no location info>: error:
panic! (the 'impossible' happened)
GHC version 9.11.20240814:
genStaticLit
RUBBISH(LiftedRep)
Call stack:
CallStack (from HasCallStack):
callStackDoc, called at compiler/GHC/Utils/Panic.hs:190:37 in ghc:GHC.Utils.Panic
pprPanic, called at compiler/GHC/StgToJS/Literal.hs:118:8 in ghc:GHC.StgToJS.Literal
CallStack (from HasCallStack):
panic, called at compiler/GHC/Utils/Error.hs:507:29 in ghc:GHC.Utils.Error
```
## Expected behavior
No crash
issue