fix for MDL-9087  screwy page when user places table into online assignment. - merging changes from Moodle_18_stable
fix for MDL-9087  screwy page when user places table into online assignment. - merging changes from Moodle_18_stable

dilawar/moodle