[Config] Fix incorrect error reporting while deleting a key in an empty config