Fixes a bug when there are empty properties

When there are empty properties in the text file, the program would
crash at start-up. This is now fixed.