Fix issue with get_brick_api_from_url method