Fix ensureScheduled to work properly with Object.observe and tests

R=arv
BUG=

Review URL: https://codereview.appspot.com/9690045