OK, I see. Thanks for that diagram.
Yes, your modified schematic is what I was suggesting, to convert a normally open circuit to normally closed.
Using an optocoupler driving a transistor is not a perfect solution. As Harald just pointed out, you will have some voltage dropped across the...