Delete work with no copies

Hi,

There was a bug in AmberDB where works couldn't be deleted if they didn't have copies.  This was a coding error.

@JonathanShaw please review and merge