If, at any time, a party to an action for legal separation files an action for divorce or annulment, the court shall consolidate the new action with the action for legal separation.