Added checks on the file supplied to DictFile, and its content

- Silently ignore empty files
- Raises an InvalidDictFileContent exception when the content is not
JSON formatted
DictFile tests