ISPN-2550 NoSuchElementException in Hot Rod Encoder

https://issues.jboss.org/browse/ISPN-2550
https://issues.jboss.org/browse/ISPN-2642

I added a new HotRod test with a storage-only node that triggers ISPN-2550.
I also included a fix for ISPN-2642, but I didn't manage to write a test for that problem yet.