fix core dump when no collrec
Merge branch 'diffbot-testing' into diffbot-matt