add BAM reading checks for detecting broken BAM files