This script traps the error in the function call and reports it.
Works, BUT does not stop onError in Firebug, not seen by fireclipse (no error propagated to console).