and where the corporation has not been given notice of such failure, consent, or agreement and has not been afforded an opportunity to take such action as it may consider advisable, it may, instead of paying the judgment, have it set aside by filing a statement of defence, and may make payment into court, appear by counsel at trial, or take such other action as it may consider appropriate on behal