Silenced HTSJDK errors when read lengths are zero, fixed file type detection