Fix $TOTALHOSTSERVICESWARNING$ and $TOTALHOSTSERVICESCRITICAL$ not getting converted

fixes #6561