Ruby 1.9 does not support nil.to_h