Fix a crash with handling reflection side effects in Java 8.