Gradient-annihilated PINNs for solving Riemann problems: Application to relativistic hydrodynamics