If an action shall be commenced within the time prescribed therefor, and a judgment therein for the plaintiff be reversed on error or appeal, the plaintiff, or if he or she dies and the cause of action survives, his or her heirs or representatives may commence a new action within one year after reversal.