Fix problems found from first deployment

Fix the following:
- Handling of empty results
- Handling of non-existent dashboards and widgets