Compare books: Fix error when previously different files become identical after beautifying