Make all errors be passed to handler (if specified)

Some errors (eg. those thown by getEntry_ function) always are thrown as "Uncaught Error:", even whether a handler or a try/catch is used for the filer.js API call. This patch ensures the error is thrown only if a handler has not been passed.