Added nil check to ColorWithHexCode