Fix crash when function call has only default arguments
Fix unintended else-if with no effect