Make importer more robust for tags

Closes #3242

- Add checks for valid fields in tags and posts
- Add unit test with empty tag export data file
- Add unit test with empty post export data file
Merge pull request #3425 from jgable/fixImporter

Make importer more robust for tags