Fixed an error on /borrow page.

It was unable to handle /books/ia:xxx pages.