Fixed NPE and NumberFormatException in ColorpickerWidget