Add undefined args handling for constructor