Altering content of a link should not happen in theming function. Moved to menu block alter function. Link to wiki changed into wiki menu callback if there are no children.