Fixed crash in detect-pairing when a read group has no reads present in a bam file