MDL-11937 - save 100 database queries in the case of the admin bookmarks block without bookmarks on non-admin page
MDL-11937 - save 100 database queries in the case of the admin bookmarks block
without bookmarks on non-admin page

Merged from MOODLE_19_STABLE

dilawar/moodle