ping_entry: Now returning error if cannot get the list of categories

This is so we do not see this annoying error message while e.g. running tests, that the table zinnia_categories does not exist (yet).