We render an empty json response for records not found.
Added new pecs and fixed the issues in the controller.