fixed a bug when frequently publish events

_storage.__jstorage_meta.PubSub.length may changed in for loop