PERF: Correctly memoize baseUri value in javascript app (PR #9986)

An empty string is a falsey value in javascript, so we were looking for the meta tag every time getURL was called, which took approximately 1.5ms every time.

GitHub