Pinking shears
Access upload.attributes properties only if exist

Currently, we try to access upload.attributes.url
even if upload.attributes doesn't exist and this
causes JavaScript to throw a fatal error.

Instead, we need to check if upload.attributes
exists before trying to access it.

See #47.