Fix some problems with undefined variables in js code.

Review Request #8733 — Created Feb. 10, 2017 and submitted — Latest diff uploaded

Information

Review Board
release-3.0.x
2a4294b...

Reviewers

There were a few places in our JS where we were making use of things which were
guaranteed to be undefined. These were mostly typos and think-os.

Ran js-tests.