BACKLOG-4464: Avoid errors when modifying + re-register jsps, and when unmounting a module