HSEARCH-1515 NPE because of inverted boolean check in IdentifierConsumer...

...DocumentProducer

This is a backport of HSEARCH-1515 to branch 4.5 : technically by the book we should open a new issue as HSEARCH-1515 is closed, but it's tempting to reopen it to change the "fix version". WDYT?