Why does the second light go out when the first bulb is removed?
You need to rewire. The light fixture that you tapped into should be redone so that the three wires (power in, light fixture, power out) are all connected to each other.