MDL-49651 mod_forum: Respect course visibility in cron