Fixed empty document deserialization

Trying to deserialize a totally empty yaml document resulted in exceptions