Fixes http://openhatch.org/bugs/issue952 open redirect in logout url.