Add a YamlConfiguration constructor

Don't have a null 'contents'!