Fix for crash when no profiles.xml