If onComplete callback for js imports wasn't specified, don't crash.