(PE-5860) Use not-empty instead of let block

Replace a let block in proxy-request with the not-empty function,
as the let block did the same thing as the not-empty function.