This is because the tcl does not see that it is redirected and the search page is not given but the result page.. gone see if i can fixe it
edit1:
Somebody who knows how to work with that http stuff..
I now know that this is wrong:
if { [regexp {<title>IMDb name and title search</title>} $html] == 1}
You get directly redirected.. the page has no name.. and i guess also no body (?)