Fixed getArgument check for optional wildcards