don't crash on deleted attachment

Using `is not` here only works because of Python string interning, which is... well, probably always going to be so, but nonetheless kind of noncanonical.  I'd just spell this `if params['attachment_url']`.