Make all errors in `get_filename_component` fatal. Fixes: #20015
Add test RunCMake.get_filename_component to cover cases of the command. Remove redundant coverage of these cases from the "complex" tests.