Fixing the subject method to recover gracefully on a failed `ZoneRulesProvider` registration.
------------- Commit messages: - Added a test - 8299571: ZoneRulesProvider.registerProvider() can leave inconsistent state on failure Changes: https://git.openjdk.org/jdk/pull/11928/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11928&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8299571 Stats: 99 lines in 2 files changed: 98 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/11928.diff Fetch: git fetch https://git.openjdk.org/jdk pull/11928/head:pull/11928 PR: https://git.openjdk.org/jdk/pull/11928