Activity: Refactor to IsSafeUrl to not call get twice.