UC-2760: Unite Web is not connecting when IM is enabled on a secondary node

- retrieve IM servers with a singel query