Fixed double rendering of attachments and repository annotates

http://www.openproject.org/work_packages/16169