Handling null values in html file