(#2497) - fix attachments in Chrome and IE

Yes, this is really what we have to do to get it to pass in IE. I'm sorry.
but yes since you might legit want your end to be 0 this would need to be ` typeof end === 'undefined'`