Fix crash by detecting NULL channel in url_join_only() and just returning.
Merge pull request #370 from RichardHitt/pull369

Fix crash by detecting NULL channel in url_join_only() and just returnin...