Update helpers.php eloquent_to_json

Add null check to eloquent_to_json to avoid array_map errors when $models=null.

Example:
return Response::eloquent(My_Model::find($non_existent_id));

Old: throws cryptic error
New: returns empty