item_queue.py: Check for fake/malicious IDs before continuing.
item_queue.py: Make failure sentinel file more robust.