MDL-15345: prevent problem while running tag_compute_correlations under pgsql. (merge from 1.9)
MDL-15345: prevent problem while running tag_compute_correlations under pgsql. (merge from 1.9)

dilawar/moodle