Revert "Revert "Fix the block version check in SetBestChain() to not regard""

This reverts commit 9fb886fcfa32a767055b08052d0675538fbfe142.