Wysiwyg: Adjust condition to allow for empty uploadsPath

Without this check, an empty URL will try converted to the current
request action which is not something that is desired.