Fix for 'Error Setting BAM Metadata' when input is BAM and selected output format is SAM.