HYDRA-134: Call textMetrics.finishAndCreateNewPage when we throw an error

These PDF.JS changes must go in at the same time as those meant for pdf_client_service (https://github.com/WebFilings/pdf_client_service/pull/125).

@bovardtiberi-wf 
@davidhouse-wf 
@jonmccracken-wf