MDL-47778 tool_monitor: check if the number of courses exceed the max

If the number of courses exceed the maximum setting then we should
not display the select box. If there are a very large amount of
courses it is possible the page will have issues loading.