[DROOLS-93] fix error reporting when using a wrong field name with @declaration