Revert and adjust previous fix for #3495305 to allow recipe input in kernel tests
This change addresses an issue introduced by the earlier fix for https://www.drupal.org/project/drupal/issues/3495305, where recipe inputs could no longer be passed from kernel tests. The current protection mechanism was being triggered unnecessarily during tests, preventing expected behavior.
Closes #3539822