Replace use of int.parse with int.tryParse (dart-lang/pub_semver#43) By replacing `int.parse` with `int.tryParse`, exceptions will no longer be thrown if the version part is a non-integer. This avoids triggering the debugger if set to break on "All Exceptions". Fixes dart-lang/pub_semver#42