js: Fix get tip fail if puppet is identified by id