Fix bug of webworker call.

- added a test of teacher exist before try send message