Fix shortenUrl helper to not crash when URL doesn't include any "/".

If `shortenUrl` is sent a URL (href) w/o "/" (like a mailto: for eg.) it crashes and makes the the whole page crash and everything else after that stops working. Puppies die. Babies cries. Not pretty.