[Git][ghc/ghc][master] JS: fix selector thunk handling