[BUGFIX] Fix action-regenerate call being made on every load of backend ...

Fixes issue that regenerate url is called every time in the backend. This fix corrects the typesafe check bug that was introduced with the last commit.