Agent is unprotected in case the user sends to many "nxt" commands

We should put in place:

  1. A check in the agent side (around line 150), that prevents the agent to measure the length of `None'
  2. A new protocol reply possibility for an erroneous condition on the nxt operation.