Fix CSS/HTML lint counts and check empty output

* Move warn_count and err_count to be inside the loop for css and html
validation rather than outside for it to reset properly for each file
validated.

* Adjust warning and error count logic to be performed only when the
  result from w3c_validator program is not null.