TYRUS-346: IllegalStateException when using proxy and JDK client fix.