xdg-portal: Guard against a possible NULL local_error
I discovered this error while working on !224 (merged) . It was not related to the backporting, so I created a separated MR.
I discovered this error while working on !224 (merged) . It was not related to the backporting, so I created a separated MR.