Rest client proxy implementation throws NPE when toString() called

Current implementation of `toString()` in generated proxy throws `NullPointerException`. This fixes it by returning somewhat meaningful message.