framework: avoid NPE in RPCLiteralEncoder