Bug 904929 - Task.jsm: exceptions handled differently if the argument is a regular function. r=paolo