Fixing bug to avoid problems arisen from m2o,o2m, or m2m objects being
empty. Now report is generated even if they are empty.