Fixed closing non-existent key bug in registry_key.
Authored by: crowbar27 2017-05-23
Parent: [r853]
Child: [r855]