fix(dashboard): add check for undefined config

In dashboard.js, the dashboard would sometimes
not open when starting deployd because
of an undefined config object.
This fix adds a check in a few places to ensure
that the config exists before checking its properties.