Fixed error on home page when no groups defined
(https://trello.com/c/pNHYAAuD/40-when-no-groups-defined-php-error-occurs-in-the-menu)