added check for nil for nsdata when converting from json data to object. the ui color getter in dkparser now tries both hex rgb and hex rgba strings