avoided NPE type-checking anonymous type -- fixes BYTEMAN-235

n.b. this does not make it possible to use anonymous types in compiled
rules, it just avoids the NPE. the latter still needs fixing.