Ruby 2.0 does not like nil elements when using Hash[] --- Thanks drewchandler