Fix IDBFS for webworkers

need curly braces if the `if` body is on another line