fix error when trying to delete a inexistent rte instance, add jquery ui