[imcc] Check sub for NULL before using it. Closes #1837
[imcc] Check sub for NULL before using it. Closes #1837

gagern/parrot,parrot/parrot,youprofit/parrot,parrot/parrot,gagern/parrot,youprofit/parrot,fernandobrito/parrot,youprofit/parrot,tewk/parrot-select,youprofit/parrot,gitster/parrot,fernandobrito/parrot,tkob/parrot,fernandobrito/parrot,FROGGS/parrot,tewk/parrot-select,tkob/parrot,fernandobrito/parrot,gagern/parrot,FROGGS/parrot,tkob/parrot,tewk/parrot-select,youprofit/parrot,gagern/parrot,gagern/parrot,FROGGS/parrot,gitster/parrot,FROGGS/parrot,fernandobrito/parrot,fernandobrito/parrot,tkob/parrot,parrot/parrot,youprofit/parrot,gagern/parrot,tewk/parrot-select,gitster/parrot,gitster/parrot,gagern/parrot,tkob/parrot,tewk/parrot-select,gitster/parrot,parrot/parrot,parrot/parrot,gitster/parrot,FROGGS/parrot,tewk/parrot-select,youprofit/parrot,tkob/parrot,youprofit/parrot,FROGGS/parrot,tkob/parrot,tkob/parrot,tewk/parrot-select,fernandobrito/parrot,gitster/parrot,FROGGS/parrot,FROGGS/parrot