Updated debugger

Updating the ElementInfo panel every animation notification is slow
Debugger now updates every half second, although there is still quite a
delay
Also added NULL pointer check