fix to prevent server crash on an invalid attempt to delete assocation
Merge pull request #741 from caasjj/master

fix to prevent server crash on an invalid attempt to delete assocation