Helpers: Fixed the way undefined args were handled

Fixes bug noted by @gero3 in #4234