Fix: Conditionally inject StateUrl

GenCover does not need url saving capability and does not have StateUrl service from GenExpress.
To prevent errors, only try to inject StateUrl when needed