[PATCH 07/11] regedit: Simplify the detection of existing registry values