Gracefully handle missing task IDs