Fix adding a new transaction to an empty file.
