fixed issue #308: failure on "Download"

A javascript error was shown when you try to download a folder from a project.
There was two errors:
1. The workspace path was missing a '/' at the end.
2. The error was not logged properly because the javascript error call was incorrect.