Ensure  is an object before calling methods on it. Fixes #3
Merge branch 'master' of git://github.com/ServiceRunner/li3_debug

* 'master' of git://github.com/ServiceRunner/li3_debug:
  Better error handling