Fixed NPE in NSString.AsStringMarshaler.toObject(). (#289)