Move asset initialisation into beforeAction to fix load order (resolves OE-2552)