[PATCH] server: Make set_caret_info fail if there is no caret window.