Fix parsing of empty keys/values.