Fix for safe_yaml returning false for empty files

File.zero?(managed_files) returns false if the file contains whitespaces.