fix undefined method `[]' for nil:NilClass, Issue#66
Merge pull request #73 from sellect/master

fix undefined method `[]' for nil:NilClass, Issue#66