eliminate ruby 2.0 warning when building hash from array with nil values