Fix bug 64051. Make sure the that url specified is actually valid before trying to upload the file. Also moved some stuff around so that if there's an error, no unnecessary processing occurs.
Fix bug 64051. Make sure the that url specified is actually valid before
trying to upload the file. Also moved some stuff around so that if there's
an error, no unnecessary processing occurs.

CCMAIL: 64051@bugs.kde.org

svn path=/trunk/kdenetwork/kopete/; revision=284919

Jtalk/kopete-fork-xep0136,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,josh-wambua/kopete