Fix a 500 error when looking at books without items