Where the defendant recovers judgment upon the defense of bankruptcy, he shall not be entitled to costs.