Fixed bug in ByBucketMapper where we were doing Preconditions.checkNotNull on a method that returned an int.