Add handling for BEFORE_OVERWRITE event sent to Cursor.