attempt to delete as a value if not a key
Merge pull request #15643 from UtahDave/2014.7fixreg

attempt to delete as a value if not a key