Fix inconsistencies with Detach and Attach callbacks when only specifying one of the pair

While looking at the relevant code in Observer.js, I realized that the same problem with detachedCallback in #89 would show up for attachedCallback after the first insertion.