Is there any harm using a solid fitting when connecting heater hoses together to bypass heater core?

No, it is commonly done when heater core goes south.