Avoid crash in release mode after the warning about unexpected child items
The root of the issue seems to be in kio_smb though.
CCBUG: 390288