Only send contexts to cache if the aren't empty. At initial installations some empty contexts were being cached and used later, causing insertion of null values to every DB but MySQL.
Only send contexts to cache if the aren't empty. At initial installations
some empty contexts were being cached and used later, causing insertion
of null values to every DB but MySQL.

dilawar/moodle