mocha: properly exit if no tests are specified

This can happen if the script fails before any tests are defined