mgr: Properly detect if dashboard cert already exists to avoid unnecessary dashboard module restarts (backport #14484)