fix dom file system stat()

Also properly report JsExecutable callback exceptions so this is
easier to track down next time.