[Git][wine/wine][master] reg: Fix out-of-bound read when string is empty.