Fix calling nil error function inside module.
Merge pull request #29 from mindless2112/fix-nil-error

Fix calling nil error function inside module.