Fix webassets using with bundle.bind(env) >= 0.10

Sorry for the late. This is the fix on the obsolete code that raise BundleError: Bundle is not connected to an environment.