Fixed issue with unnecessary reload of themes when opening a new document