fix incompatibility with html tooltip

simply using try/catch