>> a potential error is not handled in the callback of the `discoverRoot`

Indeed, I've found and fixed this bug today in neighboring branch (https://jira.ez.no/browse/EZP-21660).