Fix/cdodge/bad links can cause exception on rewrite

@cahrens there was a missing try/catch around a file system lookup. This lookup can throw an exception, e.g. security violation, and we weren't catching it.