apt/dater/host: avoid crashing the system by exporting invalid resources