Allow detaching V4 debuggers in agent destructor

We don't know in which order the QML engines and the debug service are
deleted on shutdown.

Change-Id: I9d23b3c88eee125a93c5b0f8ea85466013233737
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>