Fix MethodHandle related crash in JDK 8