Bug fixed in REST service when no data received.