Fix SF uploading error in some cases

Apparently debug.tracebug with neither nil nor a string as message just
returns the message...