Merge pull request #13304 from JoshuaVandaele/argsegfault Fix segfault when passing invalid arguments