Fixed bug involving empty yaml dictionary.