Fix auto_rewrite_input event for the Notebook app

Currently auto_rewrite_input payloads are ignored by the notebook frontend. This PR adds the missing functionality.