Obviously we don't know all the facts but if it turns out that Just Dial is wrong and Infomedia 18 is innocent, the court will have egg (?curry?) on its face. In which case there should be some harsh downside for Just Dial like, say, reimbursing Infomedia 18 for lost revenue, plus damages.
As a general rule I don't like ex parte hearings for all the obvious reasons. There needs to be a means to limit their use, and a heavy fine for being wrong is about all that comes to mind.