Fix SF uploading error in some cases

apparently debug.tracebug with neither nil nor a string as message just
returns the message...
Merge pull request #164 from Xandaros/uploadFix

Fix SF uploading error in some cases