throw error if att_name is missing in destroy call

As the att_name is used in constructing the url to send the DELETE call
to, using something like false or an empty string results in deleting
the whole document. This should not happen…