Caught all exceptions when calculating pagenumbers.

We just log the error and retry the next time the book is opened.