Fix branch encoding for negative offset and fix crash when any of the callbacks of hook SUB_WRAP is null
- Prevents null pointer dereference by checking if the callbacks are set
- Fixes the encoding of ARMBranch(Link) when the offset is negative by using a signed value.