Issue #2600152 by Cottser, dawehner: Make ThemeRegistryLoader only throw an error when $throw is true