Fix for sessionId being passed for attachments

Spenser Shumaker <sshumake@redhat.com>