Fixed a crash caused by autoreleasing NSError object inside the method that was supposed to be passed to the caller by reference using method's argument.
Merge pull request #1903 from pietrasm/Autoreleased-error-crash-fix

Fixed a crash caused by autoreleasing NSError object inside the method t...