Fixed incorrect return value for _encodeHeaders:error:

Fixed _encodeHeaders:error: can return YES (success) on failure when the out error provided is nil
Merge pull request #70 from NSProgrammer/develop

Fixed incorrect return value for _encodeHeaders:error: