It is your program so what you say goes but ....
I created a file as below
Just a Book by A N Author
Contents
1 whenever
2 whatever
When this book was added, Calibre created an entry with title "Just a Book by A N Author" by author "Unknown", my suggestion would create an index with the title "Just a Book" by author "A N Author".
I know which
I would choose.
This would benefit a few people with adding a few books. It would adversely effect nobody now or in the future.
It makes the best of a bad situation.
Your program, your decision