Fixed crash while trying to show message from the non-main thread