Fix does not work to assign the NSError pointer.
Add new test
Merge pull request #2 from yusuga/bugfix

Nulls are not stripped if the error pointer is passed in