Removing component that is already out of the tree no longer throws an error. Close #425.