No, judges need to notice when a law creates a contradiction or a stupid scenario and not make such rulings. Judges are supposed to have "wisdom". Pointing at a broken law, then breaking communications for everyone hardly seems wise. Unless he's secretly hoping this will force a big change in law and government.
Contradictions are one thing, but the stupidity of a law is subjective, and the judiciary should not be empowered to rule contrary to the law based on their opinion of it.
Which is not to say they shouldn't point out that it's ridiculous when they make their ruling, and suggest that the legislature fixes it quickly.