Mocha: Fix middleware filter var

It was loading the mocha div for files that did not have tests