Fix a long-standing bug where the `populate_room_stats` background job could fail on broken rooms.