Ensure that removing books does not cause errors when updating search
caches