NDPluginROIStat: protect against divide by zero in stats function.