This is in a few places (Navigation.js, tasks/pdf/index.js, ...) We need to filter out the TOC/NCX in various places and this should be moved to a utility function for maintainability