Add back mocking removed to make ReactEventTopLevelCallback-test pass

This is a partial reversion of commit 9937f0c8bd.

cc @spicyj @Daniel15