Failed to extract the port from uri when uri is ended with slash
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>