Fix NPE for some kinds of args.