Fix an issue with EditorCreateEvent

It should use self.model instead of model, since the model may be None, and
the subclass will create. Add a test that would have prevented the problem

Change-Id: I7edee8282db8a10d4928f3b02af3b3b1ab227802