Fix for JASSIST-220

This is a new pull request that replaces [my earlier pull request for fixing JASSIST-220](jboss-javassist/javassist/pull/10).
This one doesn't do any refactoring and has a commit message that better describes the actual problem.