otwcode/otwarchive — pull request #1163 by scottsds (2013-03-04 18:51:25+00:00)
Title: Following a deleted chapter link leads to a 500 error

Resolves issue: https://code.google.com/p/otwarchive/issues/detail?id=3505

The problem is that we were searching for the Work or Chapter record in a manner which returned an exception upon failure, instead of 'nil'. Switched the lookup method and then handled the case when 'nil' was present.