RTGOV-524 Fixed npe when using async/stream based mode
Merge pull request #149 from objectiser/RTGOV-524

RTGOV-524 Fixed npe when using async/stream based mode