Fix crash in Java class parser (thanks Joxean)