Is that "null" value a special thing of the web editor? In that case, I'd rather move the logic here. Also, we might want to rename the method to `getHexColorOrNull()` or something indicating that the colour is optional.