[DROOLS-289] PackageBuilder throws an NPE when a declared class extends another, undeclared one