Deal with possible empty values for HTML field