extract_toc: skip static content

Static content (e.g. FILES_TO_COPY) doesn't have any content for extract_toc to handle. Instead of trying to parse the content anyway (which results in a critical error), extract_toc should just ignore the content.