SubjectAdder: cacheUriToFile(): Throw exceptions instead of returning false.

And adapt the calling code. This gives more clues when something goes wrong.
Remove unnecessary imports.