Avoid crashes if arrives a undefined err object to the gloabl crash handler (shouldn't happen, but happened...)