Prevent setting LastLedgerSequence of NaN. Fixes a potential ambiguous serialization error