Handle nil as $0
Merge pull request #4 from latortuga/handle-nil-gracefully

Handle nil as $0