fix #800: NPE on proxySelector.select