fixed a problem on the dashboard

When there are no users in the users table a php error is shown on the
dashboard, fixed it