MDL-18567: Check for (boolean) false coming back from database instead of real data
MDL-18567:
Check for (boolean) false coming back from database instead of real data

Merged from STABLE_19

dilawar/moodle