Fix refactoring bug when readPlist encounters an error