Profile Selector: Fix Runtime Error
Add an additional guard condition for the case the profile list is emtpy.