Fixed infinite loop for restClient property (addresses issue #15)