An action to declare the nullity of a void marriage upon the ground that the former husband or wife of one of the parties was living, the former marriage being in force, may be maintained by either of the parties during the life-time of the other, or by the former husband or wife.