Do not create empty transfer on error

refs #5800

If an error was returned from the filesystem_ajax calls, do not
continue creating the empty Transfer.

If permissions are denied when viewing a directory, return that error
to the dashboard.