API: fix PHP warning on /api/ call (without parameters)
Merge pull request #271 from flodolo/fix_emptyservice

API: fix PHP warning on /api/ call (without parameters)