Test by running gulp runtests-browser --t completions and turning on exception breakpoints in the debugger.
It breaks on a directoryExists call coming from getDefaultTypeRoots. directoryExists calls this._getStats which apparently fails when the directory doesn't exist.
CC @rbuckton