Fix for attempting to view invalid profiles.