protect against empty bam copy