Treat UNSPECIFIED proxy type as a nil proxy. Fixes issue 5081.