avoid no necessary mocha.run()

Only tests run in real browser, if grunt-mocha options.run == true, the injected js by grunt-mocha will execute mocha.run() when everything has been done, add this if conditions to avoid no necessary mocha.run()