harvest_template.py: template error handling

- do not process pages if the template doesnt exist
- catch and warn when extract_templates_and_params cant detect
  template name correctly
- do not process page template invocation when field or value is empty

Change-Id: Id83cbe01e553655f3aedbb989dd675bcae2a7327