Fix for issue #204

The rewriting here is wrong, if the URL on the item itself is already set we do not want to cripple it.
We can have active parent menu items, you know.:)
Merge branch 'patch-1'