Bug: 12668 Ensure protected images don't leak into gallery thumbnails.
Clean up some exception handling.
Fix scope
Fix variable name.
ws, cs
Bug: 12667  Fix report form button behavior.