Add missing guards for inputs to functions

1 job for master in 1 minute and 52 seconds (queued for 2 seconds)
Status Name Job ID Coverage
  Test
passed build-fedora #248278

00:01:52