MDL-25837 detect invalid course parameter when getting fast modinfo