The PHP strict mode raises an error on extending the pid list if the indexer was configured with the folder containing the books.
$queryGenerator->getTreeList() returns an int if this folder has no subfolders. strlen on an int raises an TypeError.
For a quick fix you can add an subfolder or configure startingpoints_recursive one level up.