refine the wxEVT_TEXT_MAXLEN event handle implementation
check the return value of DoInsert and DoAppend, if failed, return NULL immediately