Fixing NPE caused when rpc definition does not include "input" or "output"