editor: Fix regression missed during prior testing

This was fortunately caught by the unit tests.  I likely missed it due to
our test pages commonly having a global grid variable.