If nothing is selected then nothing to disable.
"If" statement did not work here until now.
Test:
1. Run elementary_config from terminal.
2. Select Profile menu item (make no clicks on any item).
4. Close the app.
3. Verify the error log messages before to and following the patch.
@fixed