Fix setFromTripplet with empty inputs