function safeBuildUrl(url, specUrl, { selectedServer="" } = {}) {
  try {
    return buildUrl(url, specUrl, { selectedServer })
  } catch {
    return undefined
  }
}
Safe version of buildUrl function. `selectedServer` can contain server variables
which can fail the URL resolution.