Don't segfault if Do returns nil, err
Merge pull request #12 from justinsb/segfault_on_error

Don't segfault if Do returns nil, err