fix exception on missing registry key ...

it was returning 'undefined' on another computer, strange