Workaround for workaround for Objective-C passing nil for error.