Fix LegacyIssuesToWorkPackages for AR API change

 #select_all returns a ActiveRecord::Result.