Only call logWarn if there's anything to report
Only call logWarn if there's anything to report

Closes #2418

Blaisorblade/stack,Fuuzetsu/stack,Fuuzetsu/stack,juhp/stack,AndreasPK/stack,AndrewRademacher/stack,mrkkrp/stack,juhp/stack,anton-dessiatov/stack,martin-kolinek/stack,mrkkrp/stack,AndrewRademacher/stack,AndreasPK/stack,Blaisorblade/stack,martin-kolinek/stack,MichielDerhaeg/stack,MichielDerhaeg/stack,deech/stack,anton-dessiatov/stack,deech/stack