Fix #2 (Color.fromString failing when ExtendedColor is required) by testing if the named color is a string before calling fromHex.