Handle documents without a tracking number

If a document doesn't have a tracking number, use the filename (minus the
extension) for the ID instead