check validity of scope on destroy

 to avoid unnecessary sync messages to invalid channels (e.g. when
scope dependent association is nil)
Merge branch 'master' into live