Support 8661
Backport from the release branch of the candidate for solving problem 8569 (Fixing ledger reload and remove commands). Fixed SEGFAULT after resetting the database and going online to nodes.
Backport from the release branch of the candidate for solving problem 8569 (Fixing ledger reload and remove commands). Fixed SEGFAULT after resetting the database and going online to nodes.