obexd: Fix missing NULL check in agent_cancel

The agent_cancel function can potentially be called when there's no
agent registered, so there should be proper handling of this situation.
1 file changed