Bug fix (#172): Check the variable is nil correctly
Merge pull request #173 from hajimehoshi/ptr-nil

Bug fix (#172): Check the variable is nil correctly