Resolve empty file and add default type.

* Set string as the default type.
* Resolve issue with empty yaml file.