Fixed #1201 - RestWS error.
Merge pull request #1227 from openscholar/1201

RestWS error, Merging, looks good.