Fixed issue with themes not properly applied to newly opened documents