Fixed: InitTheme.groovy can't work without request (OFBIZ-9798) When a sendOrderConfirmation runs it calls InitTheme.groovy. But then there is no request and InitTheme fails The script was improved to escape if the request is empty and try before to resolve the visualThemeId from the context Tanks Jacques for the catch