uri_get(NULL) and uri_put(NULL) are explicitly allowed.