backport bugfix from trunk (new partition assignment failed on mixed DNA/PROT alignments)