Fix: MPC-HC did not start when using the INI file.

574c87b9f9affaae2d971c53f61b3fa803c18652 introduced an infinite-loop when writing the INI file. Registry storage was unaffected.

Fixes #4330.