Fixes #17597 - Prevent error on saving empty dashboard
(cherry picked from commit c6a25c1c3aefe355750f84a27d101389167387c1)
Fixes #17597 - Prevent error on saving empty dashboard
(cherry picked from commit c6a25c1c3aefe355750f84a27d101389167387c1)