Are you able to reproduce that problem on this server int-refapp.openmrs.org which runs a newer version of the rest module than yours?
Are you able to reproduce that problem on this server int-refapp.openmrs.org which runs a newer version of the rest module than yours?