Corrected dispatchCallback not defined bug in firefox

Change-Id: I2e64fcf2e41b0714f3a09a53b36639335cb64f04