use hasData() instead of removed getRootObjectsCount()> 0
Merge pull request #861 from millmanorama/with_image_analyzer_module

use hasData() instead of removed getRootObjectsCount()> 0