ios: fixing debugging handling when debugger is missing

Change-Id: I1178e5fddd9bf6ed4985b029f03478e3ba2a89b8
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Reviewed-by: hjk <hjk121@nokiamail.com>