Fix collection being dropped in recovery mode test

This was introduced in 633f1dc9b592d4b6cda784aee4dbabd41a42821e.