Fix malformed jpegs due to empty jpeg tables.