The web ui would only properly render ref_url links if build.change was
set. Set up conditions to check if build.change is set and fallback to
the build.newrev value if not. This way we render a clickable link using
the commit sha1.
Change-Id: I5eb9cb1c7cc0f64d6d7504347c01a6450ffb1507