I've got a plugin named "BAW Login Logout Menu" and when i've got a custom menu, a logout menu item is added without link, juts text !
I find the bug :
if ( is_admin() )
have to be:
if ( is_admin() or empty( $title ) )
when $post_id and $title are sent empty, you change the title, but there is no link.
See you !