Revert "Themes: uninstallThemeForAllApps shouldn't check if map is empty if it's null"

This reverts commit 59a9fc5c1d6164af5856725ca0d494ce70e3ae4d.