Any pending action or other judicial proceeding in which any consolidating or merging corporation is a party shall not be deemed to have abated or to have discontinued by reason of the consolidation or merger but may be prosecuted to final judgment, order, or decree in the same manner as if the consolidation or merger had not been made, or the consolidated or merged corporation may be substituted as a party to the action or proceeding, and any judgment, order, or decree may be rendered for or against it that might have been rendered for or against that corporation if the consolidation or merger had not occurred.