OOIION-1716

JS error was being thrown for non-logged in guests -- they couldn't d/l attachments.  Fixed now.