For a temporary fix, it's OK. There's nothing toxic in black iron pipe. However, why are you even considering galvanized pipe? This will eventually rust. The special nipples that should have come with the tank will not rust. You should get a couple of them and replace the black iron, but it's not an emergency repair.