Don't crash when data.yml is malformed

There is probably a better way to do this. We should probably also check if data is null (data.yml is empty).