One more fix for /rest/listbooks, broken by the introduction of files