Fixed crash on message edit in private thread.