This will allow the editor to restore selections that it associated with the start or end of a transaction.
If the transaction was nested, we return None. Otherwise we return the transaction id in preparation for editors to maintain their own selection state.