“if the respondent’s case is bad in law, he will in truth have no real prospect of succeeding on his claim or successfully defending the claim against him, as the case may be. Similarly, if the applicant’s case is bad in law, the sooner that is determined, the better”