[#79509870] Remove a module when creating

This works in a similar way to adding a module. The module is removed from the pending_dashboard in the session and the form is redisplayed.