You can also get this glitch by just beating the final boss and then leaving the area/room without activating the game's closing scene. It'll set your health down to zero/negative, and then you can go to NG+ with that life value (and the invisibility).