Don't report a spurious error when writing an empty dump.

From Spencer Rathbun.

Signed-off-by: Eddie Kohler <ekohler@gmail.com>