Update attachments.php

minor bug fix for response if two of two selected items are already attached.