Fix Trac auth handler.

Thanks Bruno Renié for reporting this problem.