Manage bad toc files removing empty items