RAZ-2229: Trash would throw error with not found flag.recordcount