Fix shortenUrl helper to not crash when URL doesn't include any "/".
Merge pull request #1909 from codedinc/shortenUrl-fix

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