Unparent before removal.

This fixes calls to isShowing() during wasRemoved() return true.