[FIX] sourceRoot can sometimes be `undefined`

Caused `path.resolve` to complain with "Arguments to path.resolve must be strings Use --force to continue."