Hubble needed to hide mirror because it is passing from sunlight into shadow every 47 minutes and mirror has to be protected from thermal stress. Also Earth emits some light even on night side that would interfere with observations.
JWST's mirror is always in shadow and stray light from sides will not be a problem at L2.