Fix bug with client side plugins initialization

Fix prechat survey and leave message page initialization for client