Fix deref before None check in http pool