Fixed error removing method hooks

Hi
I have been testing DDetours update proposed by vintagedave and noticed that there is no checking if hook was installed/removed successfully, so I added some checking. And this uncovered bug in DDetours that prevented hooks from uninstalling, this bug is fixed in this pull request.