Avoid potential null dereference with NSError

Potential null dereference.  According to coding standards in 'Creating
and Returning NSError Objects' the parameter may be null.