chore(sc-consensus-babe): skip epoch pruning when finalized header has no BABE pre-digest (#12754)