Prevent massive NPE chain

We should maybe have arg.matchesArgumentType ensure a valueOf won't
return null?