Fix advanced reservation recovery logic when upgrading from version 2.4.