Properly erase/remove a DebuggerObserver

std::remove returns the new end iterator.