Fixed NPE when NewHandler is used with java 8 method reference