Make sure wrappedObject is not null before making a method call on it