Fixed count_projects and list_projects with empty results returning empty-values instead of raising errors

Fix for #41