Catching the error caused by trying to load an empty yaml file