Correctly fixes #158.

Looks like some nil objects were getting through, leading
to a method_missing error.  Wrapping test in another test
to ensure this doesn't happen.
Fixes #130.

TO DO: improve presentation of PDF in browser window.
TO DO: refactor processor code to remove duplication.
Fixes #133.