stop "wrong element type nil" warning on Ruby 2.x
Merge pull request #136 from sunaot/stop-warning

Prevent warnings due to Hash#[] call with nil items