Fix bug in karma-spec-reporter, formatError was not injected properly.