autotests: Fix testXdgForeign
Currently, the test fails because XdgExported->deleteLater() and XdgImported->deleteLater() are called for already deleted exported or imported objects.
Currently, the test fails because XdgExported->deleteLater() and XdgImported->deleteLater() are called for already deleted exported or imported objects.