There was an issue with a plugin which has been fixed. However in the process this issue with the null variable was discovered.
The issue is not about the failing comment... The issue is that the countOnPage is not properly vetted so that if in the event it is empty it has someplace to go rather than show a notice. This is something simple that can be fixed with something like
if($countOnPage == 0)
{
//do something like show no records found or just do exception trap
}
it falls under the same rules and guidelines which plugin developers must follow for no notices. And every little tiny correction we can do helps the script.
I hope that explains things better :)
Thanks for listening