#222 Show apps with empty ports in endpoint api

This PR fixes the /v1/endpoints and /v2/tasks endpoints when using `text/plain`. In earlier versions tasks that did not have ports assigned would not show up in the list.