[Fixed] NumberFormatException: For input string: "Optional[-1]"

1. getVersion() is Optional<String> and it needs to be converted to String.
2. Version should not be empty and it isn't suitable to use default value in here, so we directly use Optional.get().
3. NoSuchElementException will tell us that rawXml missed "Version".

Test: manual
Bug: 192577104
Change-Id: I43494d7a2c3c1346a9cc01a78b1e005fb4e82764
1 file changed