Fix for PR 1119.

A Jasmine test was falling. It went unnoticed. The PR was merged. This
is a fix for it.