Resolve clutter warning for removing a child from a parent that does not...

... contain that child

Solves a regression caused by https://github.com/linuxmint/Cinnamon/commit/d8cc7085ef2fcce10bb8d93bab09336bf6a7b386