fast-import: do not call diff_delta() with empty buffer