fixes bug: frontend hangs if there is no data from server
Merge pull request #45 from codeforamerica/small-check-if-exists-first

fixes bug: frontend hangs if there is no data from server