Throw an exception if the specified profile doesn't exist