There is no reason for me not using the Title Manager Frame.
However, there seems to be another issue that may be due to the course I used the search tool.
I went ahead and created a brand new course with a couple chapters and pages, inserted the search tool and it worked. I did not add the Title Manager Frame when publishing, and it still worked. Added the Title Manager Frame and it worked as well.
So I proved that it worked but not sure what was blocking the code in the previous course.